package com.yjz.demo.router;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.yjz.common.base.BaseActivity;
import com.yjz.demo.R;
import com.yjz.ui.view.EmptyView;

/**
 * 作用 : 全局统一错误页
 * 作者 : yjz
 * 时间 : 2024/10/24 14:10
 */
@Route(path = "/degrade/global/activity")
public class DegradeGlobalActivity extends BaseActivity {

    @Override
    public int getLayoutId() {
        return R.layout.activity_global_degrade;
    }

    @Override
    public void init(Bundle savedInstanceState) {
        super.init(savedInstanceState);

        EmptyView emptyView = findViewById(R.id.empty_view);
        emptyView.setTitle("页面走丢了～");
        emptyView.setDesc("请尝试重新打开页面");
    }
}
